<?php
	session_start();
    
    if(isset($_SESSION['type']))
  if ($_SESSION['type'] == 'admin')
{  echo '<script language=javascript>location.replace("adminhome.php");</script>';
		exit();
}

?>
<html>
<head>
<title> ::.::.:: APPMA ::.::.:: </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Styles (index.psd) -->

<link href="css/style.css" rel="stylesheet" type="text/css">

<link href="css/css_tab/samples.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/SprySlidingPanels.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/tab_style.css" rel="stylesheet" type="text/css">
<!-- End ImageReady Styles -->
<script src="java/SprySlidingPanels.js" type="text/javascript"></script>

<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>



<style type="text/css">
<!--

#usefullinks {
	position:absolute;
	width:381px;
	height:94px;
	z-index:1;
	left: 38px;
	top: 30px;
}
#Layer1 {
	position:absolute;
	width:97px;
	height:33px;
	z-index:1;
	left: 8px;
	top: 7px;
}
.style1 {
	color: #FFFFFF;
	font-size: 11px;
	font-weight: bold;
	cursor:pointer;
}
#Layer2 {
	position:absolute;
	width:93px;
	height:33px;
	z-index:1;
	left: 9px;
	top: 7px;
	cursor:pointer;
}
#Layer3 {
	position:absolute;
	width:107px;
	height:33px;
	z-index:1;
	left: 3px;
	top: 7px;
	cursor:pointer;
}
#Layer4 {
	position:absolute;
	width:108px;
	height:33px;
	z-index:1;
	left: 2px;
	top: 7px;
	cursor:pointer;
}
#Layer5 {
	position:absolute;
	width:80px;
	height:27px;
	z-index:10;
	left: 911px;
	top: 8px;
	font-size:9px;
}
.style2 {color: #006633}

-->
</style>
</head>
<body style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- ImageReady Slices (index.psd) -->
<center><div id="Table_01">
	<div id="index-01">
	
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="621" height="150">
        <param name="movie" value="flash/title.swf">
        <param name="quality" value="high">
        <embed src="flash/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="621" height="150"></embed>
      </object>
    </div>
	<div id="index-02">
	  <div id="contactlink" onClick="MM_goToURL('parent','contact.php');return document.MM_returnValue"></div>
	  <div id="feedback" onClick="MM_goToURL('parent','feedback.php');return document.MM_returnValue"></div>
	  <div id="sitemap" onClick="MM_goToURL('parent','sitemap.php');return document.MM_returnValue"></div>

<?php if(isset($_SESSION['SESS_MEMBER_ID'])) {
	echo '<div id="logout"><a href="logout.php">Logout</a></div>';
	}	  
	 ?> 
	  
	  
	  
	  <div id="search">
	  <form action="search.php" method="get">
	  <td valign="middle" height="30px">
	  <input type="text" name="query" id="query" height="20px" size="35" action="include/js_suggest/suggest.php"></td>
	  <input type="text" name="search" value="1" style="display:none;">
	  <td valign="middle" height="30px">
	  <input type="submit" class="searchbtn" value=""></td>
	  </form>
	  </div>
	
	
	
	</div>
	<div id="index-03">
		
		
				<?php
				$File = "nav.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
		
	</div>
	<div id="index-04">
				<?php
				$File = "menuleft.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
    </div>
	<div id="index-05">
	
	
	        <div id="apDiv1">
        
      
<div id="menu1" onClick=" MM_swapImage('imgs1','','DDbg.JPG',1); 
MM_swapImage('imgs2','','DDbg2.JPG',1); 
MM_swapImage('imgs3','','DDbg2.JPG',1);
MM_swapImage('imgs4','','DDbg2.JPG',1); 
sp1.showPanel(0); return false">
<img src="DDbg.JPG" id="imgs1">
<div class="style1" id="Layer1">Executive Committees</div>
</div>


<div id="menu2" onClick=" 
MM_swapImage('imgs2','','DDbg.JPG',1); 
MM_swapImage('imgs1','','DDbg2.JPG',1); 
MM_swapImage('imgs3','','DDbg2.JPG',1);
 MM_swapImage('imgs4','','DDbg2.JPG',1); 
 sp1.showPanel(1); return false">
 <img src="DDbg2.JPG" id="imgs2">
 
 <div class="style1" id="Layer2">Standing Committees</div>
 </div>


<div id="menu3" onClick=" MM_swapImage('imgs3','','DDbg.JPG',1);
MM_swapImage('imgs1','','DDbg2.JPG',1);
MM_swapImage('imgs2','','DDbg2.JPG',1);
MM_swapImage('imgs4','','DDbg2.JPG',1);
 sp1.showPanel(2); return false">
 <img src="DDbg2.JPG" id="imgs3">
 
 <div class="style1" id="Layer3">Southern<br>
   Sub-Committees</div>
 </div>


<div id="menu4" onClick=" MM_swapImage('imgs4','','DDbg.JPG',1);
MM_swapImage('imgs1','','DDbg2.JPG',1);
MM_swapImage('imgs2','','DDbg2.JPG',1);
MM_swapImage('imgs3','','DDbg2.JPG',1);
 sp1.showPanel(3); return false">
 <img src="DDbg2.JPG" id="imgs4">
 
 <div class="style1" id="Layer4">Northern<br>
   Sub-Committees</div>
 </div>


<p>&nbsp;</p>
<p>&nbsp;</p>

<div id="example1" class="SlidingPanels" tabindex="0">

<div class="SlidingPanelsContentGroup">
		<div class="SlidingPanelsContent p1" id="ex1_p1">
		  <div align="left"><br>
		       
&nbsp;&nbsp;&nbsp;&nbsp;					<b>1. <a href="Central.php">Central Office Bearers</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;					<b>2. <a href="Southern.php">Southern Office Bearers</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;					<b>3. <a href="Northern.php">Northern Office Bearers</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;					<b>4. <a href="Regional.php">Regional Office Bearers</a></b><br>
		      </div>
		</div>
		<div id="ex1_p2" class="SlidingPanelsContent p2">
		  <div align="left"><br>
		       
&nbsp;&nbsp;&nbsp;&nbsp;					<b>1. <a href="Custom.php">Custom & Valuation Standing Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;					<b>2. <a href="Sales_Tax.php">Sales Tax, Budget & Taxation Standing Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;					<b>3. <a href="Banking.php">Banking & Dry Ports Standing Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;					<b>4. <a href="Local_Trade.php">Local Trade Standing Committee</a></b><br>
		      </div>
		</div>
        
		<div id="ex1_p3" class="SlidingPanelsContent p3">
		  <div align="left"><br><span style="font-size:9px;">
		       
&nbsp;&nbsp;&nbsp;&nbsp;	<b>1. <a href="Southern_Law&Order.php">Law & Order Sub-Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>2. <a href="Southern_Local_Bodies.php">Local Bodies Sub-Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>3. <a href="Southern_Port&Shipping.php"></a></b><b><a href="Southern_Arbitration.php">Arbitration Sub-Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>4.</b><b><a href="Southern_Entertainment.php">Entertainment Sub-Committee</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>     

		 </span>     </div>
		</div>
        
		<div id="ex1_p4" class="SlidingPanelsContent p4">
		  <div align="left"><br>
		       
&nbsp;&nbsp;&nbsp;&nbsp;	<b>1. <a href="Northren_Local_Affairs.php">Business Dispute Resolving Sub-Committee 2010-11 </a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>2. <a href="Northren_Local_Trade.php">Local Trade Sub Committee 2010-11</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>3. <a href="Northren_Paper_Tape.php">Budget & Taxation Sub Committee 2010-11</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>4. <a href="Northren_Arbitration.php">Welfare Sub-Committee 2010-11</a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>5. <a href="Northren_Budget.php">Media Sub-Committee 2010-11 </a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>6. <a href="Northren_Decoration.php">Fund Raising Sub-Committee 2010-11 </a></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;	<b>7. <a href="Northren_Membership_Scrutinizing.php">Membership Scrutinizing Sub-Committee 2010-11 </a></b><br>
		      </div>
  </div>
</div>
<script type="text/javascript">
var sp1 = new Spry.Widget.SlidingPanels('example1');
</script>
      </div>  

	
	</div>
     
	</div>
	<div id="index-06">
    
    
     <div id="news">
     
     
     <iframe src="news/news.php" frameborder="0" width="220px" height="200px" scrolling="no" ></iframe>
     </div>
	
    
    
    
    </div>
	<div id="index-07">
	
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="456" height="173">
        <param name="movie" value="flash/center.swf">
        <param name="quality" value="high">
        <embed src="flash/center.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="456" height="173"></embed>
      </object>
    </div>
	<div id="index-08">
	  <div id="silver1">

<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT * FROM sponsor WHERE sponsor='silver1'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/silver1.jpg"></a>

	  </div>
    
    
    </div>
	<div id="index-09">
	  <div id="platinum">
<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT * FROM sponsor WHERE sponsor='platinum'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/platinum.jpg"></a>

	  </div>
	</div>
	<div id="index-10">
		
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="456" height="145">
          <param name="movie" value="flash/bottom_links.swf">
          <param name="quality" value="high">
          <embed src="flash/bottom_links.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="456" height="145"></embed>
	  </object>
    </div>
	<div id="index-11">
	  <div id="silver2">
	  
	  	<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT * FROM sponsor WHERE sponsor='silver2'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/silver2.jpg"></a>

	  
	  </div>
    
    
    </div>
	<div id="index-12">
	
<div style="padding-top:28px; z-index:2;">        
   
<img onMouseOver=parent.innerFrame.goLeft() style="CURSOR: hand" onMouseOut=parent.innerFrame.stopHere() 
                  src="uploader/gallery/galleryfiles/lArrowa.jpg" width="20" height="20" border=0>
                  
<IFRAME border=0 name=innerFrame 
                  align=middle 
                  src="uploader/gallery/galleryfiles/gallery.html"
                  frameBorder=0 width="400px" scrolling=no 
                  height="95px"> 
                                      <table width="90%" height="80" border="0" cellpadding="5" cellspacing="0">
                                        <tr> 
                                          <td valign="middle">Your browser does not support inline 
                                            frames or is currently configured 
                                            not to display inline frames. </td>
                                        </tr>
                                      </table>
      </IFRAME>
             &nbsp;<IMG onmouseover=parent.innerFrame.goRight() style="CURSOR: hand" onmouseout=parent.innerFrame.stopHere() 
                  src="uploader/gallery/galleryfiles/rArrowa.jpg" width="20" height="20" border=0>
</div>                  

    </div>
	<div id="index-13">
	  <div id="gold">
	  
	<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT * FROM sponsor WHERE sponsor='gold'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/gold.jpg"></a>

	  
	  </div>
    
    </div>
<div id="index-14">
		
		<div id="login">
		<form action="login.php" method="post">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2"><input type="text" name="user" height="25" size="30" /></td>

  </tr>
  <tr>
    <td colspan="2"><input type="password" name="pass" height="25" size="30" /></td>

  </tr>
  <tr>
    <td align="left"><a href="profile.php">General Access</a></td>
    <td align="right"><input type="submit" value="Login"/> </td>

  </tr>
</table>
</form>
		
		</div>
		
	</div>
	
	
	
	<div id="index-15">
	
	
	
			<?php
				$File = "bittom_links.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
			
			
			
	</div>
	
	
	<div id="index-16">
	  <div id="contact">
	     <?php include "Address.php" ?>
      </div>

	</div>
	<div id="index-17">
		<img src="images/index_17.jpg" width="290" height="108" alt="">
	  <div id="newsletter">
        
        <form name="form" action="newsletter/newsletterinsert.php" method="post" onSubmit="return Validateemail()">
        <input type="text" name="email" height="25">&nbsp;<input type="submit" value="Signup">
        </form>
        
      </div>
    </div>
	<div id="index-18">
		<img src="images/index_18.jpg" width="1003" height="42" alt="">	
		<div id="Layer5"><a href="http://www.imedia.com.pk"><span class="style2">Designed By: <strong>Imedia</strong></span></a> </div>
	</div>
</div>
</center>
<!-- End ImageReady Slices -->
</body>
</html>